﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services;
using FwProject.Restaurant.Dto;
using FwProject.TypeNumber.Dto;
using Microsoft.AspNetCore.Mvc;

namespace FwProject.TypeNumber
{
    public interface ITypeNumberInfoAppService: IApplicationService
    {
        /// <summary>
        /// 添加一个型号
        /// </summary>
        /// <returns>The create.</returns>
        /// <param name="input">Input.</param>
        Task<Guid> Create(TypeNumberInfoInput input);

        /// <summary>
        /// 修改型号信息
        /// </summary>
        /// <returns>The create.</returns>
        /// <param name="input">Input.</param>
        Task Update(Guid id, TypeNumberInfoInput input);

        /// <summary>
        /// 删除型号
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task Delete(Guid id);

        /// <summary>
        /// 返回型号信息
        /// </summary>
        /// <returns>The by identifier async.</returns>
        /// <param name="id">Identifier.</param>
        [HttpGet]
        Task<TypeNumberInfoDto> GetByIdAsync(Guid id);
        /// <summary>
        /// 获取型号列表
        /// </summary>
        /// <returns>The paged list async.</returns>
        /// <param name="id">汽车编号</param>

        [HttpGet]
        Task<X.PagedList.IPagedList<TypeNumberInfoDto>> GetPagedListAsync(int pageIdx, int pageSize, DateTime? begindateTime, DateTime? enddatetime, string factoryid);

        /// <summary>
        /// 返回所有
        /// </summary>
        /// <returns></returns>
        Task<List<TypeNumberInfoDto>> GetAllTypeNumber();
        Task<List<TypeNumberInfoDto>> GetAllSystemTypeNumber();
        Task<List<TypeNumberInfoDto>> GetDefaultTypeNumber();
        Task<List<TypeNumberInfoDto>> GetNotDefaultTypeNumber();

    }
}
